package edu.hunan.cxb18.service;

import edu.hunan.cxb18.error.impl.UserException;
import edu.hunan.cxb18.pojo.User;

/**
 * @author AuthorName
 * @create 2020-04-22 15:04
 */
public interface UserService {
    /**
     * 用户登录
     * @param user
     */
    public User login(User user) throws UserException;

    /**
     * 注册用户
     * @param user
     */
    public void register(User user) throws UserException;
}
